<?php

return [
    'permissions' => [
        [1, 'info.public', '公共数据访问'],
        [2, 'users.management', '用户及权限管理'],
        [3, 'types.management', '题目类型管理'],
        [4, 'questions.post', '出题'],
        [5, 'questions.direct_edit', '直接编辑任意题目'],
        [6, 'questions.check', '审核题目'],
        [7, 'questions.exam', '做题'],
        [8, 'questions.comment', '给题目留言'],
        [9, 'questions.export', '导出题库'],
        [10, 'questions.statistics_author', '按作者统计题库'],
        [11, 'messages.private', '使用私信功能'],
        [12, 'messages.board', '使用留言板功能'],
        [13, 'messages.notice', '编辑公告栏'],
    ],
    'roles' => [
        [
            'id' => 1,
            'role_name' => 'normal',
            'text' => '出题人',
            'permissions' => [1,4,7,8,11,12],
        ],
        [
            'id' => 2,
            'role_name' => 'checker',
            'text' => '审题人',
            'permissions' => [1,4,5,6,7,8,10,11,12],
        ],
        [
            'id' => 3,
            'role_name' => 'admin',
            'text' => '管理员',
            'permissions' => [1,2,3,4,5,6,7,8,9,10,11,12,13]
        ],
    ]
];
